package com.xyz.init;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

public class XYZContext implements ApplicationContextAware {
	private static ApplicationContext context;

	@Override
	public void setApplicationContext(ApplicationContext acx)
			throws BeansException {
		context = acx;
	}

	public static ApplicationContext getApplicationContext() {
		return context;
	}

}
